//
//  ZJBGView.m
//  CoreAnimationDemo
//
//  Created by ZJ on 2018/8/10.
//  Copyright © 2018年 iCatch Technology Inc. All rights reserved.
//

#import "ZJBGView.h"

@implementation ZJBGView


// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
    
    // 创建路径
//    UIBezierPath *path = [UIBezierPath bezierPathWithArcCenter:CGPointMake(CGRectGetWidth(rect) * 0.5, CGRectGetHeight(rect) * 0.5) radius:100 startAngle:0 endAngle:2 * M_PI clockwise:YES];
//
//    [path stroke];

    UIBezierPath *path1 = [UIBezierPath bezierPathWithOvalInRect:CGRectMake(100, 100, 200, 200)];
    [path1 stroke];
    
    UIBezierPath *path2 = [UIBezierPath bezierPathWithRect:CGRectMake(100, 100, 200, 200)];
    [path2 stroke];
}


@end
